import java.util.List;

public class Test {
    public static void main(String[] args) {


        System.out.println("买/创建一副牌, CardDemo demo = new CardDemo();：");
        CardDemo demo = new CardDemo();

        System.out.println("demo:");
        System.out.println(demo);

        System.out.println("demo.buyDeck().sout:");
        System.out.println(demo.buyDeck());
        //CardDemo类---demo对象---成员有成员变量：deck ArrayList（顺序表）组织起来的Card类型--- 元素构成为：Card类型---
        //List<Card> deck = new ArrayList<>(52);

        System.out.println("=================================================");
        List<Card> deck = CardDemo.buyDeck();
                          //为什么课件上这里直接用的这个方法呀？
                          //啊，知道了。课件的psvm写在了那个类里边，我的是自己又另外写了一个Test类
        System.out.println("刚买回来的牌：");
        System.out.println(deck);

        CardDemo.shuffle(deck);
        System.out.println("洗过的牌：");
        System.out.println(deck);

        System.out.println("开始抓牌：");
        CardDemo.catchCards(deck);
        //抓完牌之后：
        System.out.println("剩余的牌：");
        System.out.println(deck);

    }
}
